<?php
$csv = array();

try{
  $handle = fopen("file1.csv", "r");
  throw new Exception('Division by zero.');
} catch(Exception $e){
echo 12345;

  echo $e->getMessage();
}

exit;


if (($handle = fopen("file.csv", "r")) !== FALSE) {
    while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) {
      $csv[] = array_map('trim',$data);
    }
    print_r($csv);
    fclose($handle);
}

